package com.example.game_community.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.game_community.entity.Comment;
import com.example.game_community.entity.Post;
import com.example.game_community.utils.Result;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface PostService extends IService<Post> {
    Result<Post>  getPostDetail(Long postId);

    Result<Post> createPost(Post post);

    Result<Comment> createComment(Long postId,Comment comment);

    Result<Page<Post>> getAllPost(int current, int size);

    Result<List<Post>> getUserPostDetail(Long userId);

    Result<String> getTempImgUrls(MultipartFile files) throws IOException;


}
